@model User
@{
    ViewData["Title"] = "Check Email";
}

<h2>Check Email</h2>
<form asp-action="CheckEmail">
    <div class="form-horizontal">
        <h4>User Email Address</h4>
        <hr />
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <div class="form-group">
            <ol>
                <li>Enter an address. Validate accepts the address.</li>
                <li>Enter a different address. Validate accepts the address.</li>
                <li>Re-enter the first address. Validation fails.</li>
            </ol>
            <label asp-for="Email" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <input asp-for="Email" class="form-control" />
                <span asp-validation-for="Email" class="text-danger"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="button" value="Validate" class="btn btn-default" />
            </div>
        </div>
    </div>
</form>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}

